<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.io.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<%@ page import="javax.sql.*"%>
<%@ page import="com.gzgi.framework.*"%>
<%@ page import="com.gzgi.framework.util.*"%>
<%@ page import="com.gzgi.framework.context.*"%>
<%@ page import="com.gzgi.framework.lob.*"%>
<%
		LobDataService lobDataService = (LobDataService) ContextFactory.getBean("lobDataService");
		BlobData blob = new BlobData();
		blob.setName("0123456789");
		blob.setData(UUID32.getUUID().getBytes());
	    lobDataService.saveBlob(blob);
		if(blob.getId() > 0){
               BlobData data = lobDataService.getBlobData(blob.getId());
			   if(data != null && data.getData() != null){
				   out.println("data length:"+data.getData().length);
			   }
		}
 %>